-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump to v31 #246
Bump to v31 #246
Conversation
- fixing breaking changes
…object of objects that need to be parsed. This may be predetermined or no, it needs to loop through the keys.
…tion when changing the size
Update - this example works now 🎉 I'm trying to get This example from the AG Grid docs working, but I'm not sure if I'm defining it wrong or if
|
Is the Update - We are recommending not to use this with Dash since the Date Object is not JSON compatible. |
Update - the issues described here have been fixed There are a couple warning messages in the console in V31 AG Grid: Since v31, 'columnApi.getColumnState' is deprecated and moved to 'api.getColumnState'. AG Grid: Since v31, 'columnApi.autoSizeAllColumns' is deprecated and moved to 'api.autoSizeAllColumns'. I'm not sure which example is triggering this warning message: AG Grid: Grid API function getColumnState() cannot be called as the grid has been destroyed. |
… added a test for `gridApi?.isDestroyed()`
I think I got these working, please check whatever was throwing these warnings. |
…t was pointing to columns instead of the overall grid
…s wasnt working and opted for only the `GRID_MAYBE_FUNCTION_NO_PARAMS`
fixing for lint
Fixed conflicts
…allowing it be adjusted more timely without forcing the underlying grid to update
The example posted above now works 🎉 Update - the issue described below is a bug and reported on the AG Grid repo. Should be fixed in the next release 🎉 ag-grid/ag-grid#7398 (comment) Now I'm trying to make it work with various date formats. For example, if you wanted to create custom cell data types and assign it to a column, it doesn't seem to work. Note that in the example below, the custom cell data type for the percentage works, but the date does not.
|
Update - Done 🎉 Could you please add:
https://github.com/plotly/dash-ag-grid/blob/main/src/lib/fragments/AgGrid.react.js#L54 |
Add textFormatter and textMatcher in COLUMN_MAYBE_FUNCTIONS
… to be allowed to use as function
… bump-to-v30 # Conflicts: # src/lib/utils/propCategories.js
* converting looping through object to return a new object for `dataTypeDefinitions`
…er to COLUMN_MAYBE_FUNCTIONS
package.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "dash-ag-grid", | |||
"version": "2.4.0", | |||
"version": "31.0.1rc3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer we not try to match the minor or patch version to AG Grid, just the major. That way we still have the flexibility to add features and fix bugs on our own schedule, we just have to hold breaking changes to align with upgrading the AG Grid major version. So the new release should be 31.0.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sdidier-dev - can you chime in here? This may affect how we link to the correct AG Grid version in the docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think we need to be in line about how we'll handle the dag version vs AG Grid version to know how to deal with the links to AG Grid docs: if they go to the last version of AG Grid docs or to an "archive" version of their docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be done in the docs itself, you cannot depend on our version, like @alexcjohnson, we need to have flexibility.
Maybe this becomes a map in the component, and we just update it there. Possibly a function that the user can run clientside as well that returns the underlying AG Grid version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually that shouldn't be an issue for the links!
We took a look with Ann Marie, we're using the version of the ag grid package used in dag:
AG_grid_version = dag.package['dependencies']['ag-grid-community'].lstrip('^')
then compare it to the latest version of AG Grid coming from their github repo:
latest_tag_url = "https://api.github.com/repos/ag-grid/ag-grid/releases/latest"
So the version of dag can be anything that's should be fine for the links to AG Grid docs 🌈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are your thoughts on being able to query the underlying grid version from the clientside? Or... could this just be done by searching the source code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be handy have a utility -- maybe something like dag.get_grid_version()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the idea of a utility for this! Clientside seems most useful to me, because then you can run it as a viewer, not just an app developer, but we can do both if you like.
Co-authored-by: Alex Johnson <alex@plot.ly>
Co-authored-by: Alex Johnson <alex@plot.ly>
Co-authored-by: Alex Johnson <alex@plot.ly>
Adjusting Grid version due to unexpected token
…olumnSize` and `columnState` at the same time to the initial grid, `columnSize` trumps the `columnState`
…ery the grid version from python side
Co-authored-by: Alex Johnson <alex@plot.ly>
…on, it will throw exception and alert the user for the error
…rst error, allowing it to check all 3 grid dependencies.
… same across the dependencies. This error will point to needing to disable the test if AG Grid becomes out of sync across the versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃 Let's do it!!
Reopening to go onto
main
sincedev
was deleted